<html>

<head>
    <meta charset="utf-8">
    <meta name="author" content="lz">
    <script src="jQuery/jquery-3.1.1.js"></script>
    <title></title>
    <style>
        main {
            width: 332px;
            margin: 0 auto;
            box-shadow: 0 0 1px black;
        }
        
        .head {
            width: 100%;
            height: 40px;
            font-size: 1.3em;
            text-align: center;
            line-height: 40px;
            border-bottom: 2px solid black;
        }
        
        section {
            width: 265px;
            /*background-color: seagreen;*/
            margin: 0 auto;
            display: -webkit-flex;
            display: -moz-flex;
            display: -ms-flex;
            display: -o-flex;
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
        }
        
        section>div {
            width: 122px;
            height: 77px;
            margin: 8px 0;
            border: 1px solid lightgray;
            position: relative;
        }
        
        img {
            width: 100%;
            height: 100%;
            position: relative;
        }
        
        section>div>div {
            width: 125px;
            height: 0;
            background-color: tomato;
            text-align: center;
            line-height: 77px;
            font-size: 1.2rem;
            color: white;
            position: absolute;
            top: 34px;
            overflow: hidden;
        }
    </style>
</head>

<body>
    <main>
        <div class="head">热门品牌推荐</div>
        <section>
            <div>
                <img src="images/11.jpg" alt="">
                <div class="qx">肌龄</div>
            </div>
            <div>
                <img src="images/22.jpg" alt="">

                <div class="qx">肌龄</div>
            </div>
            <div>
                <img src="images/33.jpg" alt="">

                <div class="qx">肌龄</div>
            </div>
            <div>
                <img src="images/44.jpg" alt="">

                <div class="qx">肌龄</div>
            </div>
            <div>
                <img src="images/55.jpg" alt="">

                <div class="qx">肌龄</div>
            </div>
            <div>
                <img src="images/66.jpg" alt="">

                <div class="qx">肌龄</div>
            </div>
            <div>
                <img src="images/77.jpg" alt="">

                <div class="qx">肌龄</div>
            </div>
            <div>
                <img src="images/88.jpg" alt="">

                <div class="qx">肌龄</div>
            </div>
        </section>
    </main>
</body>

</html>
<script>
    $('section>div').each(function () {
        $(this).hover(function () {
            $(this).find('div').delay(200)
            $(this).find('img').stop().animate({
                top: 34,
                height: 0
            },300)
            $(this).find('div').stop().animate({
                top: 0,
                height: 77
            },300)
        }, function () {
            $(this).find('div').delay(200)
            $(this).find('img').stop().animate({
                top: 0,
                height: 77
            }, 300)
            $(this).find('div').stop().animate({
                top: 34,
                height: 0
            }, 300)
        })
    })

</script>